package org.xobo.finance.helper;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.security.web.firewall.HttpFirewall;
import org.springframework.security.web.firewall.StrictHttpFirewall;
import org.springframework.web.bind.annotation.RestController;



@SpringBootApplication
@EnableCaching
@RestController
public class FinanceHelperApplication {

  public static void main(String[] args) throws Exception {
    SpringApplication.run(FinanceHelperApplication.class, args);
  }

  @Bean
  public HttpFirewall looseHttpFirewall() {
    StrictHttpFirewall firewall = new StrictHttpFirewall();
    firewall.getEncodedUrlBlacklist().clear();
    return firewall;
  }
}
